﻿using System;

namespace CodeCamp.Controllers
{
  public static class DateTimeHelper
  {
    public static DateTime CombineDateAndTime( DateTime date, TimeSpan time )
    {
      DateTime result = new DateTime( date.Year, date.Month, date.Day );
      return result.AddHours( time.Hours ).AddMinutes( time.Minutes );
    }
  }
}